Skip to content

fix(deps): sync with upstream and bump sharp/stream-json for Dependabot alerts - #1

Draft
techmore wants to merge 1125 commits into
mainfrom
security/dependabot-sync-upstream
Draft

techmore wants to merge 1125 commits into
mainfrom
security/dependabot-sync-upstream

Conversation

@techmore

@techmore techmore commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Resolves the Dependabot alerts that apply to code this fork builds and ships, by syncing with upstream and making two small dependency bumps. The fork's own commits (arm64 packaging, cargo metadata lookup, M-series docs) are kept unchanged.

  • Fork status: techmore/t3code is a fork of pingdotgg/t3code. Before this branch it was 8 commits ahead (the user's own arm64/docs work) and 1,123 behind. The merge applied cleanly with no conflicts. Compared with upstream, the branch differs only in docs/mseries/README.md, package.json (one script), scripts/build-desktop-artifact.ts and scripts/mseries/bootstrap-arm64.sh.
  • Commit 1: merge upstream/main (9bcf753).
  • Commit 2: sharp 0.35.4 → 0.35.5 and stream-json 3.6.0 → 3.7.0. These are a patch and a minor bump with no breaking changes. The lockfile already had sharp 0.35.5 for other packages, so the 0.35.4 copies drop out.

Open alerts: 329 (critical 26, high 108, medium 161, low 34)

Only 8 of the 329 alerts are in t3code's own packages. The other 321 are in .repos/alchemy-effect and .repos/effect-smol. AGENTS.md describes those as vendored read-only reference sources for agents ("Never edit or import from them"). They sit outside pnpm-workspace.yaml, so they are never installed, built or shipped. Upstream carries the same files and the same alerts.

Fixed in this PR (t3code's own packages)

Alert Severity Package Manifest Fix
pingdotgg#330 high sharp (GHSA-wq5f-xc86-pv6w, librsvg) apps/marketing/package.json 0.35.4 → 0.35.5
pingdotgg#338 high sharp (GHSA-wq5f-xc86-pv6w) scripts/package.json 0.35.4 → 0.35.5
pingdotgg#331 high @modelcontextprotocol/sdk (GHSA-6qxp-vccf-f47h) apps/server/package.json Upstream sync: upstream removed this dependency from apps/server
pingdotgg#333 high @modelcontextprotocol/sdk (GHSA-22jm-h49p-29qw) apps/server/package.json Upstream sync (dependency removed)
pingdotgg#332 medium @modelcontextprotocol/sdk apps/server/package.json Upstream sync (dependency removed)
pingdotgg#334 medium @modelcontextprotocol/sdk apps/server/package.json Upstream sync (dependency removed)
pingdotgg#336 medium stream-json (GHSA-jj87-hc4r-jwfw, O(depth²) DoS) apps/server/package.json 3.6.0 → 3.7.0

Not fixed here, with reasons

Alert Severity Package Reason
pingdotgg#337 low katex (GHSA-238p-pmpm-9mq7) Not reachable. The advisory needs an existing prototype pollution to flip trust, and apps/web/src/components/chat/MathTypeset.tsx passes trust: false as an own property, so a polluted prototype can't override it. The fix (0.18.2) is two pre-1.0 minor versions away (0.16 → 0.18), which is a breaking range for KaTeX. Leave it to upstream's next KaTeX bump.
321 alerts 24 critical, 106 high, 161 medium, 30 low .repos/alchemy-effect/**, .repos/effect-smol/** Vendored read-only reference code, outside the pnpm workspace: never installed, built or shipped. Editing it is prohibited by AGENTS.md, and it's refreshed only by scripts/sync-reference-repos.ts from upstream. Recommend dismissing as "Vulnerable code is not actually used". A few have no patched version at all (http-cache-semantics, node-forge, extract-zip).
Vendored-reference alerts by package

.repos/alchemy-effect: 267 alerts (critical 24, high 86, medium 131, low 26)

next (10C 12H 16M 2L), astro (2C 5M 3L), better-auth (2C 3H 2L), simple-git (1C 2H), seroval (1C 1H), tinypool (2C), @tanstack/solid-start (1C), @tanstack/react-start (1C), @tanstack/start-server-core (1C), shell-quote (1C), @simple-git/argv-parser (1C), proxy-addr (1C), hono (2H 35M 3L), undici (6H 14M 3L), vite (2H 7M 2L), fast-uri (5H 3M 2L), react-router (4H 6M), devalue (4H 3M 1L), tar (6H 2M), brace-expansion (4H 2M), h3 (2H 3M 1L), toml (5H), @modelcontextprotocol/sdk (3H 2M), @hono/node-server (1H 4M), postcss (2H 2M), launch-editor (1H 2M), sharp (3H), lodash (1H 2M), semver (3H), image-size (2H), svgo (1H 1M), extract-zip (2H), body-parser (1H), zod (1H), @opennextjs/cloudflare (1H), source-map-js (1H), @vue/server-renderer (1H), http-cache-semantics (1H), node-forge (1H), basic-ftp (1H), js-yaml (1H), ip-address (5M), qs (3M), nuxt (2M 1L), postcss-selector-parser (2M), @vitest/mocker (2M), nitro (2M), satori (1M), @nuxt/nitro-server (1M), smol-toml (1M), vitest (1M), valibot (1M), srvx (1M), @sveltejs/kit (2L), @better-auth/kysely-adapter (1L), @better-auth/drizzle-adapter (1L), serialize-javascript (1L), diff (1L)

.repos/effect-smol: 54 alerts (critical 2, high 18, medium 27, low 7)

seroval (1C 1H), shell-quote (1C), undici (4H 7M 3L), vite (1H 4M 1L), brace-expansion (4H 1M), launch-editor (1H 2M), happy-dom (2H), image-size (2H), @azure/msal-node (1H), sharp (1H), source-map-js (1H), nodemailer (5M), fast-uri (2M 2L), stream-json (3M), @vitest/mocker (2M), hono (1M), serialize-javascript (1L)

Verification (Node 26.12.1, pnpm 12.14.0)

  • pnpm install: lockfile updated; no sharp@0.35.4 or stream-json@3.6.0 left in pnpm-lock.yaml.
  • pnpm typecheck: 0 errors.
  • pnpm build: 7/7 successful (web, server, marketing, desktop). The web build fails when the checkout path contains a space (Vite loads Application%20Support/...fonts-cjk.ts). That is a local path issue unrelated to this change, and the build passes from a path without spaces.
  • vp test run src/project/AgentSessionJson.test.ts (the only stream-json caller): 12/12 passed.
  • Full pnpm test: 16 package suites run. All pass except two failures caused by the local machine, not this change:
    • scripts/build-npm-launcher.test.ts: 1 failure. macOS's /var → /private/var temp-dir symlink makes the path comparison fail, unrelated to these bumps. The other 234 tests in scripts pass.
    • apps/web: 4,696 unit tests pass (341 files). The browser-test project couldn't start because the Playwright Chromium isn't installed on this machine.
    • apps/server: the full suite hit a 10-minute local cap without finishing. The only changed server dependency (stream-json) is covered by the focused run above, and CI should run the full suite.
    • Every other package passed: contracts, shared, effect-acp, effect-codex-app-server, ssh, tailscale, task-cache, secret-provider-core, provider-core, provider-pi, source-control-core/azure-devops/gitlab/bitbucket, and oxlint-plugin-t3code (379).

🤖 Generated with Claude Code

juuulianx and others added 30 commits November 1, 2026 02:41
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…branch named t3 exists (pingdotgg#27815)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…n alias (pingdotgg#27859)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Omar <76748259+omar9848492@users.noreply.github.com>
…s hanging (pingdotgg#27924)

Co-authored-by: Trevor Edwards <9443483+trevoedwards@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ingdotgg#27990)

Co-authored-by: Claude Code (claude-opus-5-5) <claude-code@logueos.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…T3 runs (pingdotgg#28064)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…op (pingdotgg#28072)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…witches threads (pingdotgg#28091)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
…tgg#28132)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…_capabilities reports (pingdotgg#28133)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ironment disabled (pingdotgg#28179)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…nks (pingdotgg#28189)

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
…otgg#28209)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…dotgg#28243)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
)

Co-authored-by: Lukas Tomondy <lukas.tomondy@moonpyre.com>
juliusmarminge and others added 27 commits November 1, 2026 21:33
… reseller marks them up (pingdotgg#28004)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…er update (pingdotgg#27992)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…28995)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… work (pingdotgg#28629)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…29053)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…server (pingdotgg#29127)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Completion alerts waited two seconds after the client received a completed thread state. Audio was also fetched and decoded only when an alert needed to play, adding a first-play delay.

Notify immediately when the thread shell reports completion, and preload both sounds when a user gesture unlocks audio. Keep completion deduplication and suppression for existing, archived, and stopped runs.

This intentionally removes the continuation grace for completion alerts. A completed run can now notify before an automatic continuation starts. The sidebar's two-second placement grace and server settlement behavior remain in place.

Validation: `vp run check:changed` passes after merging current main, including 40 affected tests, formatting, lint, unused-code checks, affected typechecks, and React compiler checks. Tests cover immediate completion, duplicate suppression across reconnects, preloaded audio reuse, and retrying failed loads on alerts without retrying on every gesture. Audible timing has not been verified in a live client.

Model: GPT 6.1 Sol. Harness: Codex through T3 Code.
…unched T3 (pingdotgg#29169)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
)

Co-authored-by: Gabriel Rodrigues <huijirohankei@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
…29465)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…tates (pingdotgg#29486)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ingdotgg#27138)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
…und Agent (pingdotgg#27139)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
…ot alerts

sharp 0.35.4 -> 0.35.5 (apps/marketing, scripts): Dependabot pingdotgg#330, pingdotgg#338 (high).
stream-json 3.6.0 -> 3.7.0 (apps/server): Dependabot pingdotgg#336 (medium).
The lockfile already carried sharp 0.35.5 for other packages, so the
0.35.4 copies drop out entirely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 2, 2026
@techmore

Copy link
Copy Markdown
Owner Author

Not merged: CI is not green. "Agent context budget" fails because the upstream code pulled in by the sync grows the agent context (claudeSystemAppendBytes +296, codexAdditionalContextBytes +1474, mcpToolListJsonBytes +5210) relative to the fork's old main. That is expected for a sync, but the gate needs ALLOW_INCREASE or the budget file updated. The main ci.yml suite did not report on this PR. The branch is also 16 days old, so upstream has moved again; re-syncing would refresh it. Deploy and release workflows are guarded to pingdotgg/t3code, so merging would run CI only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.